package stategy;

/**
 * @author ZLL
 * @date create in 2018/05/10
 */
public class MovieTicket {

    private double price;
    private Discount discount;

    public void setPrice(double price) {
        this.price = price;
    }

    public void setDiscount(Discount discount) {
        this.discount = discount;
    }


    public double getPrice(){
        return discount.calculate(this.price);
    }
}
